﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EFightRoleAttribute extends Object
    {
        public var __value:int;
        public static const _EFightRoleAttributeSpeed:int = 0;
        public static const _EFightRoleAttributeAttack:int = 1;
        public static const _EFightRoleAttributeMaxLife:int = 2;
        public static const _EFightRoleAttributeMaxMana:int = 3;
        public static const _EFightRoleAttributePhysDefense:int = 4;
        public static const _EFightRoleAttributeMagicDefense:int = 5;
        public static const _EFightRoleAttributePenetration:int = 6;
        public static const _EFightRoleAttributeJouk:int = 7;
        public static const _EFightRoleAttributeHit:int = 8;
        public static const _EFightRoleAttributeCrit:int = 9;
        public static const _EFightRoleAttributeToughness:int = 10;
        public static const _EFightRoleAttributeBlock:int = 11;
        public static const _EFightRoleAttributeExpertise:int = 12;
        public static const _EFightRoleAttributeDamageReduce:int = 13;
        public static const _EFightRoleAttributeCrush:int = 14;

        public function EFightRoleAttribute(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EFightRoleAttribute
        {
            return new EFightRoleAttribute(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EFightRoleAttribute
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 15)
            {
                throw new MarshalException();
            }
            return EFightRoleAttribute.convert(_loc_2);
        }// end function

    }
}
